package com.ttn.user.bus;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import com.ttn.entities.User;
import com.ttn.util.WebUserPreferences;


public class UserBean implements Serializable {
	
	private User user;
	
	private transient MultipartFile file;
	
	@Autowired
	private WebUserPreferences webUserPreferences;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
	public UserBean() {	
		user = new User();
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}
	
	public void processFile(){
		System.out.println(file.getSize());
	}


}
